import request from '@/utils/request'

/** 获取当前登录用户能获取的运营商
 * @function getDepartmentList
 *  */
export const getDepartmentList = (data = {}) => {
  return request({
    url: '/dataScreen/getScreenDepartmentList',
    method: 'post',
    data
  })
}

/** 获取会员数据
 * @function getScreenMemberInfo
 * @param {Object} data 登录数据
 * @param {string} data.departmentId 运营商id
 * @param {number} data.pageNum 页码
 * @param {number} data.pageSize 数量
 *  */
export const getScreenMemberInfo = (data = {}) => {
  return request({
    url: '/dataScreen/getScreenMemberInfo',
    method: 'post',
    data
  })
}
